package Model;

import com.yuejian24.yuejian.yuejian_24.Service.LoginService;
import com.yuejian24.yuejian.yuejian_24.Service.UserService;
import com.yuejian24.yuejian.yuejian_24.javabean.Login;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

import static com.yuejian24.yuejian.yuejian_24.Model.URL.BASE_URL;

/**
 * Created by acer on 2017/9/27.
 */

public class registerModel {

    Retrofit retrofit;

    public registerModel(String url) {
        retrofit = new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
    public Call register(String user_name, String tel, String address, String intro, String password) {
        UserService service = retrofit.create(UserService.class);
        return service.Register(user_name, tel, address, intro, password);
    }
}


